<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>数据统计平台</title>

    <!-- Bootstrap -->
    <link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="./css/main.css">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<div class="container-fluid">
    <div class="row content">
        <div class="sidebar col-xs-2">
            <div class="panel panel-info">
                <!-- Default panel contents -->
                <div class="panel-heading" onclick="route('home')">系统首页</div>
                <!-- List group -->
                <ul class="list-group">
                    <li class="list-group-item" onclick="route('pressure')">压力</li>
                    <li class="list-group-item" onclick="route('temperature')">温度</li>
                    <li class="list-group-item" onclick="route('drilling')">钻压</li>
                    <li class="list-group-item" onclick="route('torque')">扭矩</li>
                    <li class="list-group-item" onclick="route('vibration')">振动</li>
                    <li class="list-group-item" onclick="route('more')">全部视图</li>
                    <li class="list-group-item" onclick="route('setting')">系统设置</li>
                </ul>
            </div>
        </div>
        <div class="main col-xs-10">
            <div id="home" class="block">
                <!--首页-->
                <div class="row">
                    <div class="col-xs-12 text-center">
                        <h1 class=" margin-bottom-small">基于大数据分析的机械设备运行状态检测与管理系统</h1>
                        <div class="row">
                            <div class="col-xs-12" style="font-size: 20px;text-align: right;margin-top: 10px;margin-right: 20px;">——北京信息科技大学  信息与通信工程学院</div>
                        </div>
                        <div class="row margin-bottom-small" style="margin-top: 20px;">
                            <div class="col-xs-4">
                                <img src="images/1.jpg" alt="图片">
                            </div>
                            <div class="col-xs-4">
                                <img src="images/2.jpg" alt="图片">
                            </div>
                            <div class="col-xs-4">
                                <img src="images/3.jpg" alt="图片">
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-4">
                                <img src="images/4.jpg" alt="图片">
                            </div>
                            <div class="col-xs-4">
                                <img src="images/5.jpg" alt="图片">
                            </div>
                            <div class="col-xs-4">
                                <img src="images/6.jpg" alt="图片">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="drawPage" class="block">
                <!--绘图页-->
                <div class="row padding-left padding-top padding-bottom">
                    <div class="col-xs-12">
                        <button type="button" id="startButton" class="btn btn-success" onclick="start()">开始读取</button>
                        <button type="button" class="btn btn-warning" onclick="pause()">暂停读取</button>
                        <button type="button" class="btn btn-danger" onclick="stop()">结束读取</button>
                        <span id="chart_info" class="right" style="margin-right: 25px;"></span>
                    </div>
                </div>
                <div class="row" class="block">
                    <div class="col-xs-12">
                        <div id="chart"></div>
                    </div>
                </div>
            </div>
            <div id="more" class="block">
                <div class="row padding-left padding-top padding-bottom">
                    <button type="button" id="startMoreButton" class="btn btn-success" onclick="startMore()">开始读取</button>
                    <button type="button" class="btn btn-warning" onclick="pauseMore()">暂停读取</button>
                    <button type="button" class="btn btn-danger" onclick="stopMore()">结束读取</button>
                </div>
                <div class="row">
                    <div class="col-xs-6"><span id="chart1_info" class="right"></span></div>
                    <div class="col-xs-6"><span id="chart2_info" class="right"></span></div>
                </div>
                <div class="row" style="margin-bottom: 20px;">
                    <div class="col-xs-6">
                        <div id="chart1" class="more-chart"></div>
                    </div>
                    <div class="col-xs-6">
                        <div id="chart2" class="more-chart"></div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-6"><span id="chart3_info" class="right"></span></div>
                    <div class="col-xs-6"><span id="chart4_info" class="right"></span></div>
                </div>
                <div class="row" style="margin-bottom: 20px;">
                    <div class="col-xs-6">
                        <div id="chart3" class="more-chart"></div>
                    </div>
                    <div class="col-xs-6">
                        <div id="chart4" class="more-chart"></div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-6"><span id="chart5_info" class="right"></span></div>
                    <div class="col-xs-6">&nbsp;</div>
                </div>
                <div class="row">
                    <div class="col-xs-6">
                        <div id="chart5" class="more-chart"></div>
                    </div>
                </div>
            </div>
            <div id="setting" class="block">
                <!--设置页面-->
                <div class="padding">
                    <div class="row margin-bottom-small">
                        <div class="col-xs-2">数据读取时间间隔(ms)</div>
                        <div class="col-xs-10"><input id="speed" onchange="speedChange()" type="text" class="form-control" placeholder="数据读取速度"></div>
                    </div>
                    <div class="row margin-bottom-small">
                        <div class="col-xs-2">每轮数据读取量</div>
                        <div class="col-xs-10"><input id="length" onchange="speedLength()" type="text" class="form-control" placeholder="每轮数据读取量"></div>
                    </div>
                    <div class="row margin-bottom-small">
                        <div class="col-xs-2">离线数据文件写入</div>
                        <div class="col-xs-10">
                            <div class="form-group">
                                <input type="file" onchange="jsReadFiles(this.files)">
                            </div>
                            <div id="loading"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="./node_modules/jquery/dist/jquery.min.js"></script>
<script src="./node_modules/echarts/dist/echarts.min.js"></script>
<script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="./js/route.js"></script>
<script src="./js/main.js"></script>
<script src="./js/chart.js"></script>
</body>
</html>